package com.example.demo1013.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("j2300108") // 对应数据库表名
public class Student {
    @TableId("student_id") // 主键字段映射
    private String studentId;
    private String name;
    @TableField("class") // 由于class是SQL关键字，显式指定映射
    private String className;
    private String major;
    private String gender;

    private String phone;
    private String email;
    private Integer status;
    @TableField("create_time")
    private LocalDateTime createTime;
    @TableField("update_time")
    private LocalDateTime updateTime;
}